package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 采购订单与供应商关联对象 erp_order_supplier
 *
 * @author cxl
 * @date 2024-06-06
 */
@TableName ("erp_order_supplier")
@ApiModel (value = "erp_order_supplier对象", description = "采购订单与供应商关联")
@Data
@Accessors(chain = true)
public class OrderSupplierEntity {

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 采购订单id */
    @ApiModelProperty ("采购订单id")
    @TableField ("order_id")
    @Excel (name = "采购订单id")
    private String orderId;

    /** 供货方id */
    @ApiModelProperty ("供货方id")
    @TableField ("provider_id")
    @Excel (name = "供货方id")
    private String providerId;

    @ApiModelProperty ("供货方code")
    @TableField ("provider_code")
    @Excel (name = "供货方code")
    private String providerCode;

    /** 供货方联系人 */
    @ApiModelProperty ("供货方联系人")
    @TableField ("provider_contacts")
    @Excel (name = "供货方联系人")
    private String providerContacts;

    @ApiModelProperty ("供货方联系人code")
    @TableField ("provider_contacts_code")
    @Excel (name = "供货方联系人code")
    private String providerContactsCode;

    @ApiModelProperty ("供货方地址")
    @TableField ("provider_address")
    @Excel (name = "供货方地址")
    private String providerAddress;

    /** 职务 */
    @ApiModelProperty ("职务")
    @TableField ("post")
    @Excel (name = "职务")
    private String post;

    /** 手机 */
    @ApiModelProperty ("手机")
    @TableField ("phone")
    @Excel (name = "手机")
    private String phone;

    /** 结算方id */
    @ApiModelProperty ("结算方id")
    @TableField ("balance_id")
    @Excel (name = "结算方id")
    private String balanceId;

    @ApiModelProperty ("结算方code")
    @TableField ("balance_code")
    @Excel (name = "结算方code")
    private String balanceCode;

    /** 收款方id */
    @ApiModelProperty ("收款方id")
    @TableField ("receive_id")
    @Excel (name = "收款方id")
    private String receiveId;

    @ApiModelProperty ("收款方code")
    @TableField ("receive_code")
    @Excel (name = "收款方code")
    private String receiveCode;

    /** 邮箱 */
    @ApiModelProperty ("邮箱")
    @TableField ("email")
    @Excel (name = "邮箱")
    private String email;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    @ApiModelProperty ("创建时间")
    @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
    @TableField ("create_time")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
     private Date changeTime;

    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    private Integer isUsed;


    @ApiModelProperty ("供货方名称")
    @TableField(exist = false)
    private String providerName;

    @ApiModelProperty ("供货方联系人名称")
    @TableField(exist = false)
    private String providerContactsName;

    @ApiModelProperty ("结算方名称")
    @TableField(exist = false)
    private String balanceName;

    @ApiModelProperty ("收款方名称")
    @TableField(exist = false)
    private String receiveName;

}
